package com.app.controller;


import com.app.model.CusItemExpModel;
import com.app.model.CustomerModel;
import com.app.model.UserModel;
import com.app.service.CusItemExpService;
import com.app.service.CustomerService;
import com.app.service.StudentFilesService;
import com.app.service.UserService;
import com.app.util.CommonHelp;
import com.app.util.Result;
import com.app.util.TokenUtils;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.util.List;


@Controller
@RestController
@Data
public class StudentFilesController {


    @Autowired
    JdbcTemplate jdbcTemplate;
    @Autowired
    UserService userService;
    @Autowired
    CustomerService customerService;

    @Autowired
    StudentFilesService studentFilesService;


    /**
     * 根据身份证查询高校毕业生档案
     * @param request
     * @return
     * @throws ParseException
     */
    @GetMapping("/getFiles")
    public Object getFiles(HttpServletRequest request,String idCard) throws ParseException {
        return Result.success(studentFilesService.getModelByIdCard(idCard));

    }
}
